﻿namespace MobySharp.Actions
{
    public class GetThumb : BaseAction, IAction
    {
        private readonly ThumbSize _size;
        private readonly string _tinyUrl;
        private APICall _action = APICall.getThumb;

        public GetThumb(string tinyURL, ThumbSize size)
        {
            _tinyUrl = tinyURL;
            _size = size;

            RequestType = HTTPRequestType.Get;
            Action = APICall.getThumb;
        }

        [PostDataInstruction("t", true, 32)]
        public string TinyURL
        {
            get { return _tinyUrl; }
        }

        [PostDataInstruction("s", true, 32)]
        public ThumbSize Size
        {
            get { return _size; }
        }
    }
}